package com.cn.config;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;

/**
 * description: OrderConfig <br>
 * date: 24.7.12 15:04 <br>
 * author: cn_yaojin <br>
 * version: 1.0 <br>
 */
@Setter
@Getter
@Accessors(chain = true)
@RefreshScope
@Configuration
@ConfigurationProperties(prefix = "order")
public class OrderConfig {

    /**
     * 模板预处理地址
     */
    private String imgPreHandleUrl;

    private String apiDomain;

    private String fileDomain;

    /**
     * 百度api 参数
     */
    private Baidu baidu;


    @Setter
    @Getter
    @Accessors(chain = true)
    public static class Baidu {

        /**
         * 百度 clientID
         */
        private String clientId;

        /**
         * 百度 clientSecret
         */
        private String clientSecret;

    }

}
